package com.wanmait.happyheating.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.sql.Timestamp;

/**
* Created by Mybatis Generator 2021/05/10
*/
@Data
@TableName(value = "workers")
public class Workers implements Serializable {
     @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 员工真实姓名
     */
    @TableField(value = "worker_name")
    private String workerName;

    /**
     * 员工账号
     */
    @TableField(value = "name")
    private String name;

    /**
     * 密码
     */
    @TableField(value = "pass")
    private String pass;

    /**
     * 电话
     */
    @TableField(value = "phone")
    private String phone;

    /**
     * 头像
     */
    @TableField(value = "profile")
    private String profile;

    /**
     * 总分
     */
    @TableField(value = "total_score")
    private Integer totalScore;

    /**
     * 评分次数
     */
    @TableField(value = "points_number")
    private Integer pointsNumber;

    /**
     * 居住地址
     */
    @TableField(value = "address")
    private String address;
    /**
     * 入职时间
     */
    @TableField(value = "join_time")
    private Timestamp joinTime;

    /**
     * 抢单数量
     */
    @TableField(value = "grab_orders_number")
    private Integer grabOrdersNumber;

    /**
     * 派单数量
     */
    @TableField(value = "orders_number")
    private Integer ordersNumber;

    /**
     * 退单数量
     */
    @TableField(value = "refunds_number")
    private Integer refundsNumber;

    /**
     * 维修次数
     */
    @TableField(value = "repairs_number")
    private Integer repairsNumber;

    /**
     * 维修总时长/分钟
     */
    @TableField(value = "repair_time")
    private String repairTime;

    @TableField(value = "enable")
    @TableLogic
    private Boolean enable;

    private static final long serialVersionUID = 1L;

    public static final String COL_WORK_NAME = "worker_name";

    public static final String COL_NAME = "name";

    public static final String COL_PASS = "pass";

    public static final String COL_PHONE = "phone";

    public static final String COL_PROFILE = "profile";

    public static final String COL_TOTAL_SCORE = "total_score";

    public static final String COL_POINTS_NUMBER = "points_number";

    public static final String COL_ADDRESS = "address";

    public static final String COL_JOIN_TIME = "join_time";

    public static final String COL_GRAB_ORDERS_NUMBER = "grab_orders_number";

    public static final String COL_ORDERS_NUMBER = "orders_number";

    public static final String COL_REFUNDS_NUMBER = "refunds_number";

    public static final String COL_REPAIRS_NUMBER = " repairs_number";

    public static final String COL_REPAIR_TIME = "repair_time";

    public static final String COL_ENABLE = "enable";
}